package Thread;

class MyThread extends Thread{
    @Override
    public void run() {
        while (true){

            System.out.println("hello");
        }
    }
}
public class ThreadDemo1 {
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
